|
ultrasonic3 2.2.0
|
Ultrasonic 3 Click example. More...
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
| void | chbsp_print_str (const char *str) |
Ultrasonic 3 Click example.
This example demonstrates ranging with Ultrasonic 3 Click (Chirp/TDK time-of-flight). The example periodically triggers a measurement and prints the measured distance to the USB UART.
The demo application is composed of two sections :
Initialize the USB UART logger and the Ultrasonic 3 driver, then apply the default configuration to start the sensor and prepare it for continuous single-shot ranging.
Triggers a measurement and logs results (distance, sample number, and amplitude) every 100ms.
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| void chbsp_print_str | ( | const char * | str | ) |
| int main | ( | void | ) |